package com.gxlevi.decorator;

public class DrinkDecorator extends Drink {
    Drink obj;

    public DrinkDecorator(Drink obj) {
        this.obj = obj;
    }

    @Override
    public float cost() {
        return super.getPrice() + obj.cost();
    }
}
